﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for GroupProduct
/// </summary>
public class GroupProduct : BaseBAL
{
    CGroupProductFacade facade = new CGroupProductFacade();

    private int groupProductId;
    private string groupProductName;
    private int isAcive;
    private int status;
    private int groupParent;
    private string parentGroupProductName;

    public int GroupProductId { get { return groupProductId; } set { groupProductId = value; } }
    public string GroupProductName { get { return groupProductName; } set { groupProductName = value; } }
    public int IsActive { get { return isAcive; } set { isAcive = value; } }
    public int Status { get { return status; } set { status = value; } }
    public int GroupParent { get { return groupParent; } set { groupParent = value; } }
    public string ParentGroupProductName { get { return parentGroupProductName; } set { parentGroupProductName = value; } }

    public GroupProduct Detail(int groupProductId)
    {
        return facade.Detail(groupProductId);
    }
    public IList<GroupProduct> List(int pageIndex, int pageMax, int groupProductId, int groupParent, int isActive)
    {
        return facade.List(pageIndex, pageMax, groupProductId, groupParent, isActive);
    }
    public GroupProduct Update(int groupProductId, string groupProductName, int isActive, int groupParent, int status)
    {
        return facade.Update(groupProductId, groupProductName, isActive, groupParent, status);
    }
    public GroupProduct Insert(string groupProductName, int isActive, int groupParent, int status)
    {
        return facade.Insert(groupProductName, isActive, groupParent, status);
    }
    public GroupProduct UpdateStatusActive(int groupProductId, int isActive)
    {
        return facade.UpdateStatusActive(groupProductId, isActive);
    }
}